import Vue from 'vue'
import App from './App.vue'
// 路由
import VueRouter from "vue-router"
import router from "./router/index.js"

//Vuex的store
import store from "./store/index"


import all from "./api/index"
Vue.prototype.$api=all



Vue.config.productionTip = false

// 引用插件，配置全局路由
Vue.use(VueRouter)


//实例化vm对象
new Vue({
  render: h => h(App),
  router, //挂载router
  store,  //挂载store  

  created() {
   
  
  },
}).$mount('#app')
